package com.xinzhi.service.Impl;

import com.xinzhi.dao.VideoDao;
import com.xinzhi.entity.Video;
import com.xinzhi.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VideoServiceImpl implements VideoService {
    @Autowired
    private VideoDao videodao;
    @Override
    public Video selVideo(int id) {
        Video firstvideo = videodao.selVideo(id);
        return firstvideo;
    }
    @Override
    public List<Video> getvideo() {
        return videodao.getvideo();
    }
}
